package org.dromara.admin.domain.bo;

import org.dromara.admin.domain.Region;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 全国省市二级联动业务对象 hr_region
 *
 * @author Lion Li
 * @date 2025-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Region.class, reverseConvertGenerate = false)
public class RegionBo extends BaseEntity {

    /**
     * 主键(省市编码)
     */
    private Long id;

    /**
     * 省/市名称
     */
    private String name;

    /**
     * 父级编码（省的父级为0）
     */
    private String provinceCode;

    /**
     * 层级（1=省份，2=城市）
     */
    private Integer level;


}
